package com.icloud.system.boot.dto;

import com.icloud.common.core.constant.ValidateConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 账号重置密码入参
 */
@Data
public class ResetPasswordDto {
    @NotNull(message = ValidateConstant.NOT_NULL)
    @ApiModelProperty(value = "账号Id", required = true)
    private Long id;

    @NotBlank(message = ValidateConstant.NOT_BLANK)
    @ApiModelProperty(value = "助记词", required = true)
    private String mnemonics;

    @NotBlank(message = ValidateConstant.NOT_BLANK)
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @NotBlank(message = ValidateConstant.NOT_BLANK)
    @ApiModelProperty(value = "确认密码", required = true)
    private String confirmPassword;
}
